Class Foot
Class Foot
java.lang.Object
|
+----Foot
-
class
Foot
-
extends Object
-
implements ImageObserver
Class foot implements the functions for drawing a foot
and for getting the size of one foot.
-
Version:
-
1.1, 13 Sep 1995
-
Author:
-
Georg Heßmann
-
Foot(Dance)
-
Creates the object Foot.
-
addToClipRect(Floor, Step)
-
Add the step s into the clipping rect for floor f.
-
drawFoot(Graphics, Floor, Step)
-
Draws the foot for step s on floor f within graphics context g.
-
imageUpdate(Image, int, int, int, int, int)
-
-
redrawFoot(Graphics, Floor, Step)
-
Redraw the foot for step s on floor f within graphics context g.
-
toString()
-
Returns a String object representing this Foot's value.
Foot
public Foot(Dance a)
-
Creates the object Foot. Only one object is needed.
-
Parameters:
-
a
-
pointer to the main applet.
imageUpdate
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
drawFoot
public boolean drawFoot(Graphics g,
Floor f,
Step s)
-
Draws the foot for step s on floor f within graphics context g.
-
Returns:
-
Has some foot-state changed to IMG_DRAWN.
redrawFoot
public boolean redrawFoot(Graphics g,
Floor f,
Step s)
-
Redraw the foot for step s on floor f within graphics context g.
Draw the foot only, if the image isn't IMG_OK. If it's IMG_READY,
set it to IMG_DRAWN.
addToClipRect
public void addToClipRect(Floor f,
Step s)
-
Add the step s into the clipping rect for floor f.
-
See Also:
-
addToClipRect
toString
public String toString()
-
Returns a String object representing this Foot's value.
-
Overrides:
-
toString in class Object